import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import scroll from "./components/Scroll";
import aScroll from "@/components/Common/scroll.vue";
import infiniteScroll from "@/components/Common/infinite-scroll.vue";
import axios from "axios";
import "./mock";
Vue.prototype.axios = axios;
Vue.component("scroll", scroll);
Vue.component("scroll", scroll);
Vue.component("aScroll", aScroll);
Vue.component("infiniteScroll", infiniteScroll);
/* Vue.component("appScroll", appScroll); */
Vue.filter("setWH", (url, arg) => {
  if (url) {
    return url.replace(/w\.h/, arg);
  }
});
Vue.config.productionTip = false;

import Loading from "@/components/Loading";
Vue.component("Loading", Loading);
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
